import Taro, { Component, Config } from '@tarojs/taro'
import { View, Text } from '@tarojs/components'
import { AtGrid } from 'taro-ui'

import { IProps, IState } from './schemas'

export default class extends Component<IProps, IState> {
  config: Config = {
    navigationBarTitleText: '幸运草小程序'
  }

  componentWillReceiveProps(nextProps) {
    console.log(this.props, nextProps)
  }

  componentWillUnmount() { }

  componentWillMount() { }

  componentDidShow() { }

  componentDidHide() { }

  onGetPhoneNumber = msg => {
    console.log(msg)
  }

  render() {
    return (
      <AtGrid> 123 </AtGrid>
    )
  }
}
